<template>
	<view>
		<view class="" v-for="(item,index) in vipcontentscene_2" :key="item.clcontentid" >
			<view class="theline">
				<view class="line-right"  @click="swipisshow(item)">
					<view style="font">
						{{item.title}}
					</view>
					<!-- 展开icon -->
					<view class="" v-if="item.isshowdetail">
						<image style="margin-left: 10rpx; width: 30rpx;height: 30rpx;" src="/static/tabBar/up_1.png" mode=""></image>
					</view>
					<view class="" v-else>
						<image style="margin-left: 10rpx; width: 30rpx;height: 30rpx;" src="/static/tabBar/down_1.png" mode=""></image>
					</view>
				</view>
				
			</view>
			<!-- 收起详情: -->
			<template>
				<view v-show="item.isshowdetail">
					<view class="packdetail" v-for="(it,ind) in item.children" :key="ind" @click="getvideo(it.content)">
						<view class="packdetail_left">
							{{it.content}}
						</view>
						
					</view>
					<myline></myline>
				</view>
			</template>
		</view>
	</view>
</template>

<script>
	import myline from '@/components/common/Lines.vue'
	export default {
		name:"vipcontentscene2",
		props:{
			vipcontentscene_2:{
				default:[],
				type:Array
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			//点击详情:
			swipisshow(item) {
				item.isshowdetail = !item.isshowdetail;
			},
			getvideo(content){
				uni.showToast({
					title:`开发测试中...`,
					icon:"none",
					mask:true,
					duration:500
				})
			}
		},
		components:{
			 myline 
		}
	}
</script>

<style lang="scss">
	.packdetail {
		display: flex;
		padding: 20rpx 20rpx;
		
		.packdetail_left {
			font-size: 30rpx;
			font-weight: 400;
		}
	
	}
.theline{
		margin-top: 30rpx;
		padding: 10rpx 10rpx;
		height: 40rpx;
		font-weight: 600;
		.line-right{
			font-size: 32rpx;
			display: flex;
			justify-content: space-between;
			align-self: center;
			
		}
	}
</style>